package com.snopy.base.service.impl;


import com.snopy.base.mapper.CarouselMapper;
import com.snopy.base.pojo.Carousel;
import com.snopy.base.service.CarouselService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import tk.mybatis.mapper.entity.Example;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class CarouselServiceImpl implements CarouselService {

    @Autowired
    private CarouselMapper carouselMapper;

    @Transactional(propagation = Propagation.SUPPORTS)
    @Override
    public List<Carousel> queryAll(Integer isShow) {

        List<Carousel> result =  carouselMapper.selectCarouselIsShow(isShow);
        return result;
    }
}
